package com.hooper.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hooper.hosp.model.order.OrderInfo;
import com.hooper.hosp.vo.order.OrderQueryVo;

/**
 * @author Tim Hooper
 * @version 1.0
 * @time 2022/10/09/19:55
 */
public interface OrderService extends IService<OrderInfo> {
    /**
     * 保存订单到数据库中
     * @param scheduleId 排班号
     * @param patientId  病人id
     *
     * @return 返回订单id
     */
    Long saveOrder(String scheduleId, Long patientId);

    OrderInfo getOrderById(String orderId);

    IPage<OrderInfo> pageByConditions(Integer currentPage, Integer pageSize, OrderQueryVo queryVo, Long userId);

    boolean cancelOrder(String orderId);
}
